home *** CD-ROM | disk | FTP | other *** search
/ Mac Action 1996 January / mac-action-07.iso / mac / Inside Action / Total Distortion Big Demo / bePsyMap.Dxr / 00002.ls < prev    next >
Encoding:
Text File  |  1995-06-05  |  1.5 KB  |  86 lines

  1. on initPsyMan
  2.   global PsyMan
  3.   if voidp(PsyMan) or (PsyMan = 0) or the commandDown then
  4.     set PsyMan to birth(script "PsyMan.script")
  5.   end if
  6. end
  7.  
  8. on RandoResultSnd
  9.   set startSndNum to the number of cast "DoWthMe.AIF" - 1
  10.   set RandBase to 8
  11.   set SndNum to random(RandBase) + startSndNum
  12.   puppetSound(3, SndNum)
  13. end
  14.  
  15. on RandoBeepSnd
  16.   set startSndNum to the number of cast "PsyRealy.AIF" - 1
  17.   set RandBase to 15
  18.   set SndNum to random(RandBase) + startSndNum
  19.   puppetSound(3, SndNum)
  20. end
  21.  
  22. on JumpPage n
  23.   global NowBPage
  24.   RandoBeepSnd()
  25.   set NowBPage to n
  26.   go(string(n))
  27. end
  28.  
  29. on goNowPage
  30.   global NowBPage
  31.   RandoBeepSnd()
  32.   go(string(NowBPage))
  33. end
  34.  
  35. on PutAway
  36.   puppetSound(0)
  37.   go("exit")
  38. end
  39.  
  40. on BookHelp
  41.   RandoBeepSnd()
  42.   go("help")
  43. end
  44.  
  45. on initbook n
  46.   global NowBPage, BPageMax
  47.   set NowBPage to 1
  48.   set BPageMax to n
  49. end
  50.  
  51. on PageUp
  52.   global NowBPage, BPageMax
  53.   if NowBPage = BPageMax then
  54.     exit
  55.   else
  56.     set NowBPage to NowBPage + 1
  57.   end if
  58.   puppetSound(3, the number of cast "BookPage.1")
  59.   go(string(NowBPage))
  60. end
  61.  
  62. on LastPage
  63.   global NowBPage, BPageMax
  64.   puppetSound(3, the number of cast "Kick.1")
  65.   go(string(BPageMax))
  66.   set NowBPage to BPageMax
  67. end
  68.  
  69. on FirstPage
  70.   global NowBPage, BPageMax
  71.   puppetSound(3, the number of cast "Kick.1")
  72.   go("1")
  73.   set NowBPage to 1
  74. end
  75.  
  76. on PageDN
  77.   global NowBPage, BPageMax
  78.   if NowBPage = 1 then
  79.     exit
  80.   else
  81.     set NowBPage to NowBPage - 1
  82.   end if
  83.   puppetSound(3, the number of cast "BookPage.2")
  84.   go(string(NowBPage))
  85. end
  86.